package com.ylbh.modules.toconfigure.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ylbh.modules.toconfigure.entity.ShoppingSettings;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface ShoppingSettingsMapper extends BaseMapper<ShoppingSettings> {

    /**
     * 获取推广订单奖励
     * @return
     */
    ShoppingSettings selectOrderAward();

    /**
     * 修改推广订单奖励
     * @param shoppingSettings
     */
    void updateOrderAWardById(@Param(value = "shoppingSettings") ShoppingSettings shoppingSettings);
}
